package org.example.rtc.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.rtc.mapper.DcmMapper;
import org.example.rtc.mapper.UserMapper;
import org.example.rtc.model.entity.DcmInfo;
import org.example.rtc.model.entity.User;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
public class DcmService extends ServiceImpl<DcmMapper, DcmInfo> {

    public List<DcmInfo> getFileList(String patId, String type) {
        return list(new LambdaQueryWrapper<DcmInfo>()
                .eq(DcmInfo::getUserId, patId)
                .eq(DcmInfo::getType, type)
        );
    }
}
